package com.cloud.logger.zchain.zchainserver.mongo;

import com.cloud.logger.zchain.zchainserver.entity.AngelaLogger;

import java.io.Serializable;
import java.util.Date;

/**
 * User: wcy
 * Date: 2017/11/2
 * Time: 11:29
 */
public interface AngelaEntityRepository extends BaseMongoRepository<AngelaLogger,Serializable> {
    long countByProjectAndCreateTimeAfterAndAlarmLevelNot(String code, Date startTime, int i);

    long countByProjectAndCreateTimeBetweenAndAlarmLevelNot(String code, Date endTime, Date startTime, int i);

    long countByProjectAndCreateTimeBetween(String code, Date startTime, Date endTime);

    long countByProjectAndCreateTimeAfter(String code, Date startTime);
}
